import request from '@/api/request'


// 广告列表查询
function adsList(data) {
  return request({
    url: `/lejuAdmin/advertise/adsList`,
    method: 'get',
    data
  })
}



// 广告更新
function updateAds(data) {
  return request({
    url: `/lejuAdmin/advertise/updateAds`,
    method: 'post',
    data
  })
}


// 广告删除
function delAds(adsId) {
  return request({
    url: `/lejuAdmin/advertise/delAds/${adsId}`,
    method: 'DELETE'
  })
}


// 添加广告
function addAds(adsId) {
  return request({
    url: `/lejuAdmin/advertise/addAds`,
    method: 'post'
  })
}


export default {
  adsList,
  updateAds,
  delAds,
  addAds
}
